import React from "react";
import {Table} from "antd";
import {TableProps} from "antd/es/table";

interface I18nListProps extends TableProps<any> {

}

const I18nList: React.FC<I18nListProps> = (props) => {
  let {dataSource} = props;
  const columns = [
    {
      title: '名称',
      dataIndex: 'name',
    },
    {
      title: '路径',
      dataIndex: 'path',
    },
    {
      title: '中文',
      dataIndex: 'zh-cn',
    },
    {
      title: '英文',
      dataIndex: 'en',
    },
  ]
  return (
    <>
      <Table
        dataSource={dataSource}
        columns={columns}
      />
    </>
  )
}
export default I18nList;
